
package com.br.utils;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Andrei
 */
public class Conexao {
     public static Connection getConnection()throws SQLException{
        try {
            Class.forName("com.mysql.jdbc.Driver");
            return DriverManager.getConnection("jdbc:mysql://localhost:3306/sga","root","");
        } catch (ClassNotFoundException ex) {
            throw new SQLException();
        }
        
    }
}